<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<form:form commandName="datebean" cssClass="form-horizontal" role="form">
	<div class="panel panel-default">
		<div class="panel-heading">
			<h3 class="panel-title">基本信息</h3>
		</div>
		<div class="panel-body">
			<div class="col-sm-12">
				<div class="form-group">
                    <label class="col-sm-2 control-label" for="name">项目名称</label>
					<div class="col-sm-3">
						<input type="text" name="name" id="name" placeholder="请输入项目名称" value="${datebean.name}" class="form-control required">
					</div>
                    <label class="col-sm-2 control-label" for="username">责任单位</label>
					<div class="col-sm-3">
						<input type="text" name="username" id="username" placeholder="请输入姓名" value="${datebean.resDept}" class="form-control required">
					</div>
				</div>
				<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="beginTime">启动时间</label>
				<div class="col-sm-3">
						<div class="row">
							<div class="col-xs-8 col-sm-12">
								<div class="input-group">
									<input type="text" name="beginTime" id="beginTime" autocomplete="off"
										   class="form-control date-picker"  readonly value="${datebean.beginTime}" />
									<span class="input-group-addon">
										<i class="fa fa-calendar bigger-110"></i>
									</span>
								</div>
							</div>
						</div>
					</div>
					<label class="col-sm-2 control-label no-padding-right" for="finishTime">实际完成时间</label>
				<div class="col-sm-3">
						<div class="row">
							<div class="col-xs-8 col-sm-12">
								<div class="input-group">
									<input type="text" name="finishTime" id="finishTime" autocomplete="off"
										   class="form-control date-picker"  readonly value="${datebean.finishTime}" />
									<span class="input-group-addon">
										<i class="fa fa-calendar bigger-110"></i>
									</span>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="palnFinishTime">计划完成时间</label>
				<div class="col-sm-3">
						<div class="row">
							<div class="col-xs-8 col-sm-12">
								<div class="input-group">
									<input type="text" name="palnFinishTime" id="palnFinishTime" autocomplete="off"
										   class="form-control date-picker"  readonly value="${datebean.palnFinishTime}" />
									<span class="input-group-addon">
										<i class="fa fa-calendar bigger-110"></i>
									</span>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group">
                    <label class="col-sm-2 control-label" for="resUser">责任单位分管领导</label>
					<div class="col-sm-3">
						<input type="text" name="resUser" id="resUser" placeholder="请输入责任单位分管领导" value="${datebean.resUser}" class="form-control required">
					</div>
                    <label class="col-sm-2 control-label" for="industryCode">行业分类</label>
					<div class="col-sm-3">	
						<form:select path="industryCode" items="${industryTypes }" itemValue="typeCode" itemLabel="typeName" cssClass="form-control"></form:select>
					</div>
				</div>
               <input type="hidden" name="sysId" value="${datebean.sysId}">
			</div>
		</div>
	</div>
	<%-- <input type="hidden" name="floorId" value="${datebean.floorId}">
	<input type="hidden" name="userId" value="${datebean.userId}"> --%>
</form:form>
		<script type="text/javascript">
			jQuery(function($) {
				$('.date-picker').datepicker({
					inline: true,
					format:"yyyy-mm-dd",
					autoclose: true,
					todayHighlight: true,
					language: 'cn'
				})
				//show datepicker when clicking on the icon
				.next().on(ace.click_event, function(){
					$(this).prev().focus();
				});
			});
		</script>